package com.sptpc.drink.dao;

import com.sptpc.drink.pojo.Category;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    //根据分类category的名字查询分类下的所有饮品drink
//    Category selectDrinkByCategoryName(String name);

    //通过名字查询category
//    Category selectByCategoryByName(String name);
    List<Category> selectByCategoryByName(String name);
//查询所有v的category
    List<Category> selectAllCategory();
}
